<?php

namespace app\api\controller;

use think\Controller;

class program extends Father
{
    //项目简介
    public function introduce(){
        $return = [
            'data'=>'',
            'message'=> "查询失败",
            'success' => false

        ];
        $data = model('Program')->where('id',1)->find();
        if ($data){
            $return['success'] =true;
            $return['message'] ="查询成功";
            $return['data'] =$data;
        }
        return  json($return);

    }
}
